package com.mengxuegu.springboot;

import com.netflix.ribbon.proxy.annotation.Hystrix;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

//配置中心自动刷新
@RefreshScope
//服务发现生效
@EnableDiscoveryClient
//@MapperScan("com.mengxuegu.springboot.mapper")
@SpringBootApplication
@EnableFeignClients
@EnableScheduling
@Hystrix
public class BankUserApplication {

    public static void main(String[] args) {
        SpringApplication.run(BankUserApplication.class, args);
    }

}
